const { defineConfig } = require('@vue/cli-service')

module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,  // 关闭 ESlint
  devServer: {
    https: false,  // 开启 https 模式
    proxy: {
      '/api': {
        target: 'http://localhost:9090',  // 测试地址、目标地址
        pathRewrite: {
          '^/api': ''
        },
        changeOrigin: true,  // 允许跨域
      }
    }
  }
})
